/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 */

package com.mycompany.mavenproject2;

/**
 *
 * @author win10-s
 */ class Activation {
    // Sigmoid激活函数
    public static double sigmoid(double x) {
        return 1.0 / (1.0 + Math.exp(-x));
    }

    // Sigmoid导数（用于梯度下降）
    public static double sigmoidDerivative(double x) {
        double sig = sigmoid(x);
        return sig * (1 - sig);
    }
}
public class Mavenproject2 {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
